﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Global.Tool
{
    public static class UnityIncreaseClassExtension
    {
        /// <summary>
        /// 获取RectTransform
        /// </summary>
        /// <typeparam name="T"> 组件类 </typeparam>
        /// <param name="t">组件实例</param>
        /// <returns></returns>
        public static RectTransform GetRectTransform<T>(this T t) where T :Transform
        {
            return t as RectTransform;
        }
    }
}
